package gaileenchess.tests;
import gaileenchess.*;

public class MainTest
{
    public static void main(String[] args)
    {
        Test[] tests = {new BishopTest(), new BoardTest(), new CommonTest(), new ComputerPlayerTest(),
                        new HumanPlayerTest(), new KingTest(), new KnightTest(), new PawnTest(),
                        new QueenTest(), new RookTest()};
                        
        int numTests = tests.length;
        boolean pass = true;
        
        //TODO: add tests for getValidMoves (might want to add just a Player test file?)
        
        for(int x = 0; x < numTests; x++)
        {
            pass &= tests[x].run();
        }
        
        if(!pass)
        {
            System.out.println("\t\tTests have failed!");
            System.exit(1);
        }
        
        System.out.println("\t\tAll tests successful!");
    }
}
